<template>
  <div>
    <el-row :style="'min-height: 350px;height:'+(pageHeight-454)+'px;'">
      <el-image :src="require('../assets/img/construct.png')" fit="fill" />
    </el-row>
  </div>
</template>
<script>
export default {
  data () {
    return {
      pageHeight: 0
    }
  },
  mounted () {
    this.getPageHeight()
    // 监控浏览器大小变化，调整页面的布局
    window.onresize = () => {
      this.getPageHeight()
    }
  },
  methods: {
    getPageHeight () {
      this.pageHeight = window.innerHeight
    }
  }
}
</script>
<style scoped lang="less">
.el-row {
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
